package com.netty.controller;

import com.netty.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/client")
public class NettyClientController {


    @Autowired
    private TaskService taskService;


    @GetMapping
    @RequestMapping("sendMsg")
    public String sendMsg(String rownum){
        return taskService.sendMsg(rownum);
    }

}
